home *** CD-ROM | disk | FTP | other *** search
/ Exame Informatica 139 / Exame Informatica 139.iso / Revista / Flash / Uniform Server / diskw / home / admin / www / phpMyAdmin / config.inc.php < prev    next >
Encoding:
PHP Script  |  2005-12-25  |  39.9 KB  |  866 lines

  1. <?php
  2. /* $Id: config.inc.php,v 2.65 2005/08/23 23:08:21 lem9 Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * phpMyAdmin Configuration File
  7.  *
  8.  * All directives are explained in Documentation.html
  9.  */
  10.  
  11.  
  12. /**
  13.  * Sets the php error reporting - Please do not change this line!
  14.  */
  15. if (!isset($old_error_reporting)) {
  16.     error_reporting(E_ALL);
  17.     @ini_set('display_errors', '1');
  18. }
  19.  
  20.  
  21. /**
  22.  * Your phpMyAdmin URL.
  23.  *
  24.  * Complete the variable below with the full url ie
  25.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  26.  *
  27.  * It must contain characters that are valid for a URL, and the path is
  28.  * case sensitive on some Web servers, for example Unix-based servers.
  29.  *
  30.  * In most cases you can leave this variable empty, as the correct value
  31.  * will be detected automatically. However, we recommend that you do
  32.  * test to see that the auto-detection code works in your system. A good
  33.  * test is to browse a table, then edit a row and save it.  There will be
  34.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  35.  */
  36. $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://' . $_SERVER['SERVER_NAME'] . (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : '') . substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);
  37. #$cfg['PmaAbsoluteUri'] = $_SERVER['HTTP_HOST'] . '/apanel/phpMyAdmin/'; 
  38.  
  39. /**
  40.  * Disable the default warning that is displayed on the DB Details Structure page if
  41.  * any of the required Tables for the relationfeatures could not be found
  42.  */
  43. $cfg['PmaNoRelation_DisableWarning']  = FALSE;
  44.  
  45. /**
  46.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  47.  * at least one server configuration uses 'cookie' auth_type, enter here a
  48.  * passphrase that will be used by blowfish. The maximum length seems to be 46
  49.  * characters.
  50.  */
  51. $cfg['blowfish_secret'] = '';
  52.  
  53. /**
  54.  * Server(s) configuration
  55.  */
  56. $i = 0;
  57. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
  58. // You can disable a server config entry by setting host to ''.
  59. $i++;
  60. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  61. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  62. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  63. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  64. $cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
  65. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  66.                                                     // (requires PHP >= 4.3.0)
  67. $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
  68.                                                     // (this user must have read-only
  69. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  70.                                                     // and "mysql/db" tables).
  71.                                                     // The controluser is also
  72.                                                     // used for all relational
  73.                                                     // features (pmadb)
  74. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  75. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  76. $cfg['Servers'][$i]['password']      = implode ('', file ('../mysql_password'));                    // MySQL password (only needed
  77.                                                     // with 'config' auth_type)
  78. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  79.                                                     // this db is displayed in left frame
  80.                                                     // It may also be an array of db-names, where sorting order is relevant.
  81. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  82.  
  83. $cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
  84.                                                     // (see scripts/create_tables.sql)
  85.                                                     //   - leave blank for no support
  86.                                                     //     DEFAULT: 'phpmyadmin'
  87. $cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
  88.                                                     //   - leave blank for no bookmark support
  89.                                                     //     DEFAULT: 'pma_bookmark'
  90. $cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
  91.                                                     //   - leave blank for no relation-links support
  92.                                                     //     DEFAULT: 'pma_relation'
  93. $cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
  94.                                                     //   - leave blank for no display fields support
  95.                                                     //     DEFAULT: 'pma_table_info'
  96. $cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
  97.                                                     //   - leave blank for no PDF schema support
  98.                                                     //     DEFAULT: 'pma_table_coords'
  99. $cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
  100.                                                     //   - leave blank if you don't want to use this
  101.                                                     //     DEFAULT: 'pma_pdf_pages'
  102. $cfg['Servers'][$i]['column_info']   = '';          // table to store column information
  103.                                                     //   - leave blank for no column comments/mime types
  104.                                                     //     DEFAULT: 'pma_column_info'
  105. $cfg['Servers'][$i]['history']       = '';          // table to store SQL history
  106.                                                     //   - leave blank for no SQL query history
  107.                                                     //     DEFAULT: 'pma_history'
  108. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
  109.                                                     // are up to date. This prevents compatibility
  110.                                                     // checks and thereby increases performance.
  111. $cfg['Servers'][$i]['AllowRoot']     = TRUE;        // whether to allow root login
  112. $cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
  113.                                      = '';
  114. $cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
  115.                                      = array();
  116.  
  117. /**
  118.  * If you are configuring for only one server, stop here. You can jump to the next
  119.  *   section called "Other core phpMyAdmin settings."
  120.  * The following section allows you to add a second server to this installation.
  121.  */
  122.  
  123. $i++;
  124. $cfg['Servers'][$i]['host']            = '';
  125. $cfg['Servers'][$i]['port']            = '';
  126. $cfg['Servers'][$i]['socket']          = '';
  127. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  128. $cfg['Servers'][$i]['extension']       = 'mysql';
  129. $cfg['Servers'][$i]['compress']        = FALSE;
  130. $cfg['Servers'][$i]['controluser']     = '';
  131. $cfg['Servers'][$i]['controlpass']     = '';
  132. $cfg['Servers'][$i]['auth_type']       = 'config';
  133. $cfg['Servers'][$i]['user']            = 'root';
  134. $cfg['Servers'][$i]['password']        = '';
  135. $cfg['Servers'][$i]['only_db']         = '';
  136. $cfg['Servers'][$i]['verbose']         = '';
  137. $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  138. $cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
  139. $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
  140. $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
  141. $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
  142. $cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
  143. $cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
  144. $cfg['Servers'][$i]['history']         = ''; // 'pma_history'
  145. $cfg['Servers'][$i]['verbose_check']   = TRUE;
  146. $cfg['Servers'][$i]['AllowRoot']       = TRUE;
  147. $cfg['Servers'][$i]['AllowDeny']['order']
  148.                                        = '';
  149. $cfg['Servers'][$i]['AllowDeny']['rules']
  150.                                        = array();
  151.  
  152. /**
  153.  * This section allows you to configure a third server for this installation.
  154.  */
  155.  
  156. $i++;
  157. $cfg['Servers'][$i]['host']            = '';
  158. $cfg['Servers'][$i]['port']            = '';
  159. $cfg['Servers'][$i]['socket']          = '';
  160. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  161. $cfg['Servers'][$i]['extension']       = 'mysql';
  162. $cfg['Servers'][$i]['compress']        = FALSE;
  163. $cfg['Servers'][$i]['controluser']     = '';
  164. $cfg['Servers'][$i]['controlpass']     = '';
  165. $cfg['Servers'][$i]['auth_type']       = 'config';
  166. $cfg['Servers'][$i]['user']            = 'root';
  167. $cfg['Servers'][$i]['password']        = '';
  168. $cfg['Servers'][$i]['only_db']         = '';
  169. $cfg['Servers'][$i]['verbose']         = '';
  170. $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  171. $cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
  172. $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
  173. $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
  174. $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
  175. $cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
  176. $cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
  177. $cfg['Servers'][$i]['history']         = ''; // 'pma_history'
  178. $cfg['Servers'][$i]['verbose_check']   = TRUE;
  179. $cfg['Servers'][$i]['AllowRoot']       = TRUE;
  180.  
  181. $cfg['Servers'][$i]['AllowDeny']['order']
  182.                                        = '';
  183. $cfg['Servers'][$i]['AllowDeny']['rules']
  184.                                        = array();
  185.  
  186. // If you have more than one server configured, you can set $cfg['ServerDefault']
  187. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  188. // or set it to 0 to be given a list of servers without logging in
  189. // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  190. // set to that server.
  191. $cfg['ServerDefault'] = 1;              // Default server (0 = no default server)
  192. $cfg['Server']        = '';
  193. unset($cfg['Servers'][0]);
  194.  
  195.  
  196. /**
  197.  * Other core phpMyAdmin settings
  198.  */
  199. $cfg['OBGzip']                  = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
  200. $cfg['PersistentConnections']   = FALSE;  // use persistent connections to MySQL database
  201. $cfg['ExecTimeLimit']           = 300;    // maximum execution time in seconds (0 for no limit)
  202. $cfg['SkipLockedTables']        = FALSE;  // mark used tables, make possible to show
  203.                                           // locked tables (since MySQL 3.23.30)
  204. $cfg['ShowSQL']                 = TRUE;   // show SQL queries as run
  205. $cfg['AllowUserDropDatabase']   = FALSE;  // show a 'Drop database' link to normal users
  206. $cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  207. $cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie auth. mode or not
  208. $cfg['LoginCookieValidity']     = 1800;   // validity of cookie login (in seconds)
  209. $cfg['UseDbSearch']             = TRUE;   // whether to enable the "database search" feature
  210.                                           // or not
  211. $cfg['IgnoreMultiSubmitErrors'] = FALSE;  // if set to true, PMA continues computing multiple-statement queries
  212.                                           // even if one of the queries failed
  213. $cfg['VerboseMultiSubmit']      = TRUE;   // if set to true, PMA will show the affected rows of EACH statement on
  214.                                           // multiple-statement queries. See the read_dump.php file for hardcoded
  215.                                           // defaults on how many queries a statement may contain!
  216. $cfg['AllowArbitraryServer']    = FALSE;  // allow login to any user entered server in cookie based auth
  217.  
  218. // Left frame setup
  219. $cfg['LeftFrameLight']        = TRUE;    // use a select-based menu and display only the
  220.                                          // current tables in the left frame.
  221. $cfg['LeftFrameDBTree']       = TRUE;    // turn the select-based light menu into a tree
  222. $cfg['LeftFrameDBSeparator']  = '_';     // the separator to sub-tree the select-based light menu tree
  223. $cfg['LeftFrameTableSeparator']= '__';   // Which string will be used to generate table prefixes
  224.                                          // to split/nest tables into multiple categories
  225. $cfg['LeftFrameTableLevel']   = '1';     // How many sublevels should be displayed when splitting
  226.                                          // up tables by the above Separator
  227. $cfg['ShowTooltip']           = TRUE;    // display table comment as tooltip in left frame
  228. $cfg['ShowTooltipAliasDB']    = FALSE;   // if ShowToolTip is enabled, this defines that table/db comments
  229. $cfg['ShowTooltipAliasTB']    = FALSE;   // are shown (in the left menu and db_details_structure) instead of
  230.                                          // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
  231.                                          // use the Aliases for nested descriptors, not the table itself.
  232.  
  233. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  234. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  235. $cfg['DisplayServersList']    = FALSE;  // server choice as links
  236.  
  237. // In the main frame, at startup...
  238. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  239.                                         // the pages about database details and table
  240.                                         // properties
  241. $cfg['ShowMysqlInfo']         = FALSE;  // whether to display the "MySQL runtime
  242. $cfg['ShowMysqlVars']         = FALSE;  // information", "MySQL system variables", "PHP
  243. $cfg['ShowPhpInfo']           = FALSE;  // information" and "change password" links for
  244. $cfg['ShowChgPassword']       = FALSE;  // simple users or not
  245. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)
  246.  
  247. // In browse mode...
  248. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  249. $cfg['NavigationBarIconic']   = 'both'; // Use icons instead of text for the navigation bar buttons
  250.                                         // and on right panel top menu (server db table) (TRUE|FALSE|'both')
  251. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  252. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  253. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  254.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  255.                                         // descending order for fields of type
  256.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  257.                                         // ascending order else-)
  258.  
  259. // In edit mode...
  260. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  261.                                         // valid values are:
  262.                                         //   FALSE  allow editing
  263.                                         //   'blob' allow editing except for BLOB fields
  264.                                         //   'all'  disallow editing
  265. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  266. $cfg['CharEditing']           = 'input';
  267.                                         // Which editor should be used for CHAR/VARCHAR fields:
  268.                                         //  input - allows limiting of input length
  269.                                         //  textarea - allows newlines in fields
  270. $cfg['InsertRows']            = 2;      // How many rows can be inserted at one time
  271.  
  272. $cfg['ForeignKeyDropdownOrder'] =       // Sort order for items in a foreign-key dropdown box. 
  273.     array( 'content-id', 'id-content'); // 'content' is the referenced data, 'id' is the key value.
  274. $cfg['ForeignKeyMaxLimit'] = 100;       // A dropdown will be used if fewer items are present
  275.  
  276.  
  277. // For the export features...
  278. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  279. $cfg['GZipDump']              = TRUE;   // compression for
  280. $cfg['BZipDump']              = TRUE;   // dump files
  281. $cfg['CompressOnFly']         = TRUE;   // Will compress gzip/bzip2 exports on
  282.                                         // fly without need for much memory.
  283.                                         // If you encounter problems with
  284.                                         // created gzip/bzip2 files disable
  285.                                         // this feature.
  286.  
  287. // Tabs display settings
  288. $cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
  289. $cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
  290. $cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
  291.                                         // (a value larger than 1 results in some information being hidden)
  292.  
  293. $cfg['DefaultTabServer']      = 'main.php';
  294.                                    // Possible values:
  295.                                    // 'main.php' = the welcome page
  296.                                    // (recommended for multiuser setups)
  297.                                    // 'server_databases.php' = list of databases
  298.                                    // 'server_status.php' = runtime information
  299.                                    // 'server_variables.php' = MySQL server variables
  300.                                    // 'server_privileges.php' = user management
  301.                                    // 'server_processlist.php' = process list
  302. $cfg['DefaultTabDatabase']    = 'db_details_structure.php';
  303.                                    // Possible values:
  304.                                    // 'db_details_structure.php' = tables list
  305.                                    // 'db_details.php' = sql form
  306.                                    // 'db_search.php' = search query
  307.                                    // 'db_operations.php' = operations on database
  308. $cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
  309.                                    // Possible values:
  310.                                    // 'tbl_properties_structure.php' = fields list
  311.                                    // 'tbl_properties.php' = sql form
  312.                                    // 'tbl_select.php = select page
  313.                                    // 'tbl_change.php = insert row page
  314.  
  315. /**
  316.  * Export defaults
  317.  */
  318.  
  319. $cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml/xls/htmlexcel/htmlword
  320. $cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2
  321.  
  322. $cfg['Export']['asfile']                    = FALSE;
  323. $cfg['Export']['charset']                   = '';
  324. $cfg['Export']['onserver']                  = FALSE;
  325. $cfg['Export']['onserver_overwrite']        = FALSE;
  326. $cfg['Export']['remember_file_template']    = TRUE;
  327. $cfg['Export']['file_template_table']       = '__TABLE__';
  328. $cfg['Export']['file_template_database']    = '__DB__';
  329. $cfg['Export']['file_template_server']      = '__SERVER__';
  330.  
  331. $cfg['Export']['htmlexcel_columns']         = FALSE;
  332. $cfg['Export']['htmlexcel_null']            = 'NULL';
  333.  
  334. $cfg['Export']['htmlword_structure']        = TRUE;
  335. $cfg['Export']['htmlword_data']             = TRUE;
  336. $cfg['Export']['htmlword_columns']          = FALSE;
  337. $cfg['Export']['htmlword_null']             = 'NULL';
  338.  
  339. $cfg['Export']['xls_columns']               = FALSE;
  340. $cfg['Export']['xls_null']                  = 'NULL';
  341.  
  342. $cfg['Export']['csv_columns']               = FALSE;
  343. $cfg['Export']['csv_null']                  = 'NULL';
  344. $cfg['Export']['csv_separator']             = ';';
  345. $cfg['Export']['csv_enclosed']              = '"';
  346. $cfg['Export']['csv_escaped']               = '\\';
  347. $cfg['Export']['csv_terminated']            = 'AUTO';
  348. $cfg['Export']['excel_columns']             = FALSE;
  349. $cfg['Export']['excel_null']                = 'NULL';
  350. $cfg['Export']['excel_edition']             = 'win'; // win/mac
  351.  
  352. $cfg['Export']['latex_structure']           = TRUE;
  353. $cfg['Export']['latex_data']                = TRUE;
  354. $cfg['Export']['latex_columns']             = TRUE;
  355. $cfg['Export']['latex_relation']            = TRUE;
  356. $cfg['Export']['latex_comments']            = TRUE;
  357. $cfg['Export']['latex_mime']                = TRUE;
  358. $cfg['Export']['latex_null']                = '\textit{NULL}';
  359. $cfg['Export']['latex_caption']             = TRUE;
  360. $cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
  361. $cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';
  362.  
  363. $cfg['Export']['sql_structure']             = TRUE;
  364. $cfg['Export']['sql_data']                  = TRUE;
  365. $cfg['Export']['sql_compat']                = 'NONE';
  366. $cfg['Export']['sql_disable_fk']            = FALSE;
  367. $cfg['Export']['sql_use_transaction']       = FALSE;
  368. $cfg['Export']['sql_drop_database']         = FALSE;
  369. $cfg['Export']['sql_drop_table']            = FALSE;
  370. $cfg['Export']['sql_if_not_exists']         = FALSE;
  371. $cfg['Export']['sql_auto_increment']        = TRUE;
  372. $cfg['Export']['sql_backquotes']            = TRUE;
  373. $cfg['Export']['sql_dates']                 = FALSE;
  374. $cfg['Export']['sql_relation']              = FALSE;
  375. $cfg['Export']['sql_columns']               = FALSE;
  376. $cfg['Export']['sql_delayed']               = FALSE;
  377. $cfg['Export']['sql_ignore']                = FALSE;
  378. $cfg['Export']['sql_hex_for_binary']        = TRUE;
  379. $cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
  380. $cfg['Export']['sql_extended']              = FALSE;
  381. $cfg['Export']['sql_comments']              = FALSE;
  382. $cfg['Export']['sql_mime']                  = FALSE;
  383. $cfg['Export']['sql_header_comment']        = ''; // \n is replaced by new line
  384.  
  385. /**
  386.  * Link to the official MySQL documentation.
  387.  * Be sure to include no trailing slash on the path.
  388.  * See http://dev.mysql.com/doc/ for more information
  389.  * about MySQL manuals and their types.
  390.  */
  391. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/mysql/en';
  392.  
  393. /**
  394.  * Type of MySQL documentation:
  395.  *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  396.  *   searchable - "Searchable, with user comments"
  397.  *   chapters   - "HTML, one page per chapter"
  398.  *   big        - "HTML, all on one page"
  399.  *   none       - do not show documentation links
  400.  */
  401. $cfg['MySQLManualType'] = 'searchable';
  402.  
  403.  
  404. /**
  405.  * PDF options
  406.  */
  407. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  408. $cfg['PDFDefaultPageSize']  = 'A4';
  409.  
  410.  
  411. /**
  412.  * Language and charset conversion settings
  413.  */
  414. // Default language to use, if not browser-defined or user-defined
  415. $cfg['DefaultLang'] = 'en-iso-8859-1';
  416.  
  417. // Force: always use this language - must be defined in
  418. //        libraries/select_lang.lib.php
  419. // $cfg['Lang']     = 'en-iso-8859-1';
  420.  
  421. // Default charset to use for recoding of MySQL queries, does not take
  422. // any effect when charsets recoding is switched off by
  423. // $cfg['AllowAnywhereRecoding'] or in language file
  424. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  425. $cfg['DefaultCharset'] = 'iso-8859-1';
  426.  
  427. // Allow charset recoding of MySQL queries, must be also enabled in language
  428. // file to make harder using other language files than unicode.
  429. // Default value is FALSE to avoid problems on servers without the iconv
  430. // extension and where dl() is not supported
  431. $cfg['AllowAnywhereRecoding'] = FALSE;
  432.  
  433. // You can select here which functions will be used for charset conversion.
  434. // Possible values are:
  435. //      auto   - automatically use available one (first is tested iconv, then
  436. //               recode)
  437. //      iconv  - use iconv or libiconv functions
  438. //      recode - use recode_string function
  439. $cfg['RecodingEngine'] = 'auto';
  440.  
  441. // Specify some parameters for iconv used in charset conversion. See iconv
  442. // documentation for details:
  443. // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
  444. $cfg['IconvExtraParams'] = '';
  445.  
  446. // Available charsets for MySQL conversion. currently contains all which could
  447. // be found in lang/* files and few more.
  448. // Charsets will be shown in same order as here listed, so if you frequently
  449. // use some of these move them to the top.
  450. $cfg['AvailableCharsets'] = array(
  451.     'iso-8859-1',
  452.     'iso-8859-2',
  453.     'iso-8859-3',
  454.     'iso-8859-4',
  455.     'iso-8859-5',
  456.     'iso-8859-6',
  457.     'iso-8859-7',
  458.     'iso-8859-8',
  459.     'iso-8859-9',
  460.     'iso-8859-10',
  461.     'iso-8859-11',
  462.     'iso-8859-12',
  463.     'iso-8859-13',
  464.     'iso-8859-14',
  465.     'iso-8859-15',
  466.     'windows-1250',
  467.     'windows-1251',
  468.     'windows-1252',
  469.     'windows-1256',
  470.     'windows-1257',
  471.     'koi8-r',
  472.     'big5',
  473.     'gb2312',
  474.     'utf-8',
  475.     'utf-7',
  476.     'x-user-defined',
  477.     'euc-jp',
  478.     'ks_c_5601-1987',
  479.     'tis-620',
  480.     'SHIFT_JIS'
  481. );
  482.  
  483. /**
  484.  * Customization & design
  485.  *
  486.  * The graphical settings are now located in themes/themename/layout.inc.php
  487.  */
  488.  
  489. $cfg['LeftPointerEnable']   = TRUE;         // enable the left panel pointer
  490.                                             // (used when LeftFrameLight is FALSE)
  491.                                             // see also LeftPointerColor
  492.                                             // in layout.inc.php
  493.  
  494. $cfg['BrowsePointerEnable'] = TRUE;        // enable the browse pointer
  495.                                             // see also BrowsePointerColor
  496.                                             // in layout.inc.php
  497.  
  498. $cfg['BrowseMarkerEnable'] = TRUE;         // enable the browse marker
  499.                                             // see also BrowseMarkerColor
  500.                                             // in layout.inc.php
  501.  
  502. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  503.                                             // (this value will be emphasized (*2) for sql
  504.                                             // query textareas and (*1.25) for query window)
  505. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  506. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  507. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  508. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  509. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  510. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  511. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  512. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  513.                                             // (or at the top with vertical browse)
  514. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  515.                                             // (or at the bottom with vertical browse)
  516. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  517.                                             // (horizontal|vertical|horizontalflipped)
  518. $cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
  519.                                             // creating columns (tbl_properties)
  520.                                             // (horizontal|vertical)
  521.  
  522. $cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
  523.                                             // NOTE: CSS only works in IE browsers!
  524. $cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
  525. $cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
  526. $cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)
  527.  
  528. $cfg['QueryFrame']          = TRUE;         // displays a link or icon in the left frame to open the querybox, and activates the querybox when clicking on [Edit] on the results page.
  529. $cfg['QueryFrameJS']        = TRUE;         // whether to use JavaScript functions for opening a new window for SQL commands.
  530.                                             // if set to 'false', the target of the querybox is always the right frame.
  531. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  532. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  533. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  534.                                             // If FALSE, this utilizes JS-routines to display
  535.                                             // query history (lost by window close)
  536. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  537.                                             // (sql|files|history|full)
  538. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  539.                                             // should be kept?
  540. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  541. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
  542.                                             // table rows.
  543. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  544.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.
  545.  
  546. $cfg['NaturalOrder']        = TRUE;         // Sort table and database in natural order
  547.  
  548.  
  549. //-----------------------------------------------------------------------------
  550. // custom-setup by mkkeck: 2004-05-04
  551. //    some specials for new icons and scrollings
  552. // FIXME:
  553. // 2004-05-08 rabus: We need to rearrange these variables.
  554.  
  555. $cfg['ShowHttpHostTitle']   = TRUE;            // show HttpHost in browsers window title (true|false)?
  556. $cfg['SetHttpHostTitle']    = '';              // if ShowHttpHostTitle=true, please set your host (server)
  557.                                              // or an other string, wich should be shown in browsers window title.
  558.                                              // If not set (or empty), the PMA will get your real Host-Adress.
  559.  
  560. $cfg['ErrorIconic']          = TRUE;    // show some icons for warning, error and information messages (true|false)?
  561. $cfg['MainPageIconic']       = TRUE;    // show icons in list on main page and on menu tabs (true|false)?
  562. $cfg['ReplaceHelpImg']       = TRUE;    // show help button instead of strDocumentation (true|false)?
  563.  
  564. // theme manager
  565. $cfg['ThemePath']           = './themes';    // using themes manager please set up here the path to 'themes'
  566.                                              // else leave empty
  567. $cfg['ThemeManager']        = TRUE;          // if you want to use selectable themes and if ThemesPath not empty
  568.                                              // set it to true, else set it to false (default is false);
  569. $cfg['ThemeDefault']        = 'original';         // set up default theme, if ThemePath not empty
  570.                                              // you can set up here an valid path to themes or 'original' for
  571.                                              // the original pma-theme
  572. $cfg['ThemePerServer']      = FALSE;         // allow diferent theme for each configured server
  573.  
  574. //-----------------------------------------------------------------------------
  575.  
  576.  
  577. /**
  578.  * Default queries
  579.  * %d will be replaced by the database name.
  580.  * %t will be replaced by the table name.
  581.  * %f will be replaced by a list of field names.
  582.  * (%t and %f only applies to DefaultQueryTable)
  583.  */
  584. $cfg['DefaultQueryTable']    = 'SELECT * FROM %t WHERE 1';
  585. $cfg['DefaultQueryDatabase'] = '';
  586.  
  587. /**
  588.  * SQL Query box settings
  589.  * These are the links display in all of the SQL Query boxes
  590.  */
  591. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  592. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  593. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  594. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  595. $cfg['SQLQuery']['Refresh']   = TRUE;       // Refresh the results page
  596.  
  597.  
  598. /**
  599.  * Webserver upload/save/import directories
  600.  */
  601. $cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
  602.                                             // phpMyAdmin. For example './upload'. Leave empty for
  603.                                             // no upload directory support
  604. $cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
  605.                                             // server. For example './save'. Leave empty for no save
  606.                                             // directory support.
  607. $cfg['docSQLDir']             = '';         // Directory for docSQL imports, phpMyAdmin can import
  608.                                             // docSQL files from that directory. For example
  609.                                             // './docSQL'. Leave empty for no docSQL import support.
  610. $cfg['TempDir']               = '';         // Directory where phpMyAdmin can save temporary files.
  611.                                             // This is needed for MS Excel export, see documentation
  612.                                             // how to enable that.
  613.  
  614.  
  615. /**
  616.  * Misc. settings
  617.  */
  618. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  619.                                             // does autodetection, which is a bit expensive for
  620.                                             // php < 4.3.0, but it is the only safe vay how to
  621.                                             // determine GD version.
  622. /**
  623.  * SQL Parser Settings
  624.  */
  625. $cfg['SQP']['fmtType']      = 'html';       // Pretty-printing style to use on queries (html, text, none)
  626. $cfg['SQP']['fmtInd']       = '1';          // Amount to indent each level (floats ok)
  627. $cfg['SQP']['fmtIndUnit']   = 'em';         // Units for indenting each level (CSS Types - {em,px,pt})
  628. // The graphical settings are now located in themes/themename/layout.inc.php
  629.  
  630. /**
  631.  * If you wish to use the SQL Validator service, you should be
  632.  * aware of the following:
  633.  * All SQL statements are stored anonymously for statistical purposes.
  634.  * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  635.  * All rights reserved.
  636.  */
  637. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  638. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  639. $cfg['SQLValidator']['password'] = '';      // Password for username
  640.  
  641. /**
  642.  * Developers ONLY!
  643.  * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
  644.  */
  645. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  646. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  647. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  648.                                             // Anything below the threshold is not displayed
  649.  
  650.  
  651. /**
  652.  * MySQL settings
  653.  */
  654. // Column types;
  655. // varchar, tinyint, text and date are listed first, based on estimated popularity
  656. $cfg['ColumnTypes'] = array(
  657.    'VARCHAR',
  658.    'TINYINT',
  659.    'TEXT',
  660.    'DATE',
  661.    'SMALLINT',
  662.    'MEDIUMINT',
  663.    'INT',
  664.    'BIGINT',
  665.    'FLOAT',
  666.    'DOUBLE',
  667.    'DECIMAL',
  668.    'DATETIME',
  669.    'TIMESTAMP',
  670.    'TIME',
  671.    'YEAR',
  672.    'CHAR',
  673.    'TINYBLOB',
  674.    'TINYTEXT',
  675.    'BLOB',
  676.    'MEDIUMBLOB',
  677.    'MEDIUMTEXT',
  678.    'LONGBLOB',
  679.    'LONGTEXT',
  680.    'ENUM',
  681.    'SET',
  682.    'BOOL'
  683. );
  684.  
  685. // Attributes
  686. // Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically 
  687. // for MySQL >= 4.1.2, in tbl_properties.inc.php
  688.  
  689. $cfg['AttributeTypes'] = array(
  690.    '',
  691.    'BINARY',
  692.    'UNSIGNED',
  693.    'UNSIGNED ZEROFILL'
  694. );
  695.  
  696. // Available functions
  697. if ($cfg['ShowFunctionFields']) {
  698.     $cfg['Functions'] = array(
  699.        'ASCII',
  700.        'CHAR',
  701.        'SOUNDEX',
  702.        'LCASE',
  703.        'UCASE',
  704.        'NOW',
  705.        'PASSWORD',
  706.        'OLD_PASSWORD',
  707.        'MD5',
  708.        'SHA1',
  709.        'ENCRYPT',
  710.        'RAND',
  711.        'LAST_INSERT_ID',
  712.        'COUNT',
  713.        'AVG',
  714.        'SUM',
  715.        'CURDATE',
  716.        'CURTIME',
  717.        'FROM_DAYS',
  718.        'FROM_UNIXTIME',
  719.        'PERIOD_ADD',
  720.        'PERIOD_DIFF',
  721.        'TO_DAYS',
  722.        'UNIX_TIMESTAMP',
  723.        'USER',
  724.        'WEEKDAY',
  725.        'CONCAT'
  726.     );
  727.  
  728.     // Which column types will be mapped to which Group?
  729.     $cfg['RestrictColumnTypes'] = array(
  730.        'VARCHAR'      => 'FUNC_CHAR',
  731.        'TINYINT'      => 'FUNC_NUMBER',
  732.        'TEXT'         => 'FUNC_CHAR',
  733.        'DATE'         => 'FUNC_DATE',
  734.        'SMALLINT'     => 'FUNC_NUMBER',
  735.        'MEDIUMINT'    => 'FUNC_NUMBER',
  736.        'INT'          => 'FUNC_NUMBER',
  737.        'BIGINT'       => 'FUNC_NUMBER',
  738.        'FLOAT'        => 'FUNC_NUMBER',
  739.        'DOUBLE'       => 'FUNC_NUMBER',
  740.        'DECIMAL'      => 'FUNC_NUMBER',
  741.        'DATETIME'     => 'FUNC_DATE',
  742.        'TIMESTAMP'    => 'FUNC_DATE',
  743.        'TIME'         => 'FUNC_DATE',
  744.        'YEAR'         => 'FUNC_DATE',
  745.        'CHAR'         => 'FUNC_CHAR',
  746.        'TINYBLOB'     => 'FUNC_CHAR',
  747.        'TINYTEXT'     => 'FUNC_CHAR',
  748.        'BLOB'         => 'FUNC_CHAR',
  749.        'MEDIUMBLOB'   => 'FUNC_CHAR',
  750.        'MEDIUMTEXT'   => 'FUNC_CHAR',
  751.        'LONGBLOB'     => 'FUNC_CHAR',
  752.        'LONGTEXT'     => 'FUNC_CHAR',
  753.        'ENUM'         => '',
  754.        'SET'          => ''
  755.     );
  756.  
  757.     // Map above defined groups to any function
  758.     $cfg['RestrictFunctions'] = array(
  759.         'FUNC_CHAR'   => array(
  760.             'ASCII',
  761.             'CHAR',
  762.             'SOUNDEX',
  763.             'LCASE',
  764.             'UCASE',
  765.             'PASSWORD',
  766.             'OLD_PASSWORD',
  767.             'MD5',
  768.             'SHA1',
  769.             'ENCRYPT',
  770.             'LAST_INSERT_ID',
  771.             'USER',
  772.             'CONCAT'
  773.         ),
  774.  
  775.         'FUNC_DATE'   => array(
  776.             'NOW',
  777.             'CURDATE',
  778.             'CURTIME',
  779.             'FROM_DAYS',
  780.             'FROM_UNIXTIME',
  781.             'PERIOD_ADD',
  782.             'PERIOD_DIFF',
  783.             'TO_DAYS',
  784.             'UNIX_TIMESTAMP',
  785.             'WEEKDAY'
  786.         ),
  787.  
  788.         'FUNC_NUMBER' => array(
  789.             'ASCII',
  790.             'CHAR',
  791.             'MD5',
  792.             'SHA1',
  793.             'ENCRYPT',
  794.             'RAND',
  795.             'LAST_INSERT_ID',
  796.             'UNIX_TIMESTAMP',
  797.             'COUNT',
  798.             'AVG',
  799.             'SUM'
  800.         )
  801.     );
  802.  
  803.     // Default functions for above defined groups
  804.     $cfg['DefaultFunctions'] = array(
  805.         'FUNC_CHAR'         => '',
  806.         'FUNC_DATE'         => '',
  807.         'FUNC_NUMBER'       => '',
  808.         'first_timestamp'   => 'NOW'
  809.     );
  810.  
  811.  
  812. } // end if
  813.  
  814. // Search operators
  815. $cfg['NumOperators'] = array(
  816.    '=',
  817.    '>',
  818.    '>=',
  819.    '<',
  820.    '<=',
  821.    '!=',
  822.    'LIKE',
  823.    'NOT LIKE'
  824. );
  825.  
  826. $cfg['TextOperators'] = array(
  827.    'LIKE',
  828.    'LIKE %...%',
  829.    'NOT LIKE',
  830.    '=',
  831.    '!=',
  832.    'REGEXP',
  833.    'NOT REGEXP'
  834. );
  835.  
  836. $cfg['EnumOperators'] = array(
  837.    '=',
  838.    '!='
  839. );
  840.  
  841. $cfg['SetOperators'] = array(
  842.    'IN',
  843.    'NOT IN'
  844. );
  845.  
  846. $cfg['NullOperators'] = array(
  847.    'IS NULL',
  848.    'IS NOT NULL'
  849. );
  850.  
  851. $cfg['UnaryOperators'] = array(
  852.    'IS NULL'     => 1,
  853.    'IS NOT NULL' => 1
  854. );
  855.  
  856. /**
  857.  * Unset magic_quotes_runtime - do not change!
  858.  */
  859. set_magic_quotes_runtime(0);
  860.  
  861. /**
  862.  * File Revision - do not change either!
  863.  */
  864. $cfg['FileRevision'] = '$Revision: 2.65 $';
  865. ?>
  866.